import request from "@/utils/request";

// 查询合同所属公司列表
export function listBelongingCompany(query) {
  return request({
    url: "/contract/BelongingCompany/list",
    method: "get",
    params: query,
    handleError: true,
  });
}

// 查询合同所属公司详细
export function getBelongingCompany(belongingCompanyId) {
  return request({
    url: "/contract/BelongingCompany/" + belongingCompanyId,
    method: "get",
    handleError: true,
  });
}

// 新增合同所属公司
export function addBelongingCompany(data) {
  return request({
    url: "/contract/BelongingCompany",
    method: "post",
    data: data,
  });
}

// 修改合同所属公司
export function updateBelongingCompany(data) {
  return request({
    url: "/contract/BelongingCompany",
    method: "put",
    data: data,
  });
}

// 删除合同所属公司
export function delBelongingCompany(belongingCompanyId) {
  return request({
    url: "/contract/BelongingCompany/" + belongingCompanyId,
    method: "delete",
  });
}
